/*
 * This file is part of FinVis.
 *
 * FinVis is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * FinVis is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with FinVis.  If not, see <http://www.gnu.org/licenses/>
 *
 * @author Stephen Rudolph
 */

#ifndef FINVIEWKEY_H
#define FINVIEWKEY_H

#include <QDockWidget>
#include <QObject>
QT_FORWARD_DECLARE_CLASS(QListWidget);
QT_FORWARD_DECLARE_CLASS(QListWidgetItem);

#include "Common.h"

/*
 * Dispay the visualization's key as a icon/label list
 */
class FinViewKey : public QDockWidget
{
    Q_OBJECT

signals:
    void symbolDisabled(enum::symbols sym);
    void symbolEnabled(enum::symbols sym);
public:
    FinViewKey(QWidget *parent = NULL);
    QListWidget *keyListWidget;
private slots:
    void itemChanged(QListWidgetItem *item);
};

#endif // FINVIEWKEY_H
